<?php
namespace Home\Model;
use Think\Model;
class LogModel extends \Think\Model {
    public function addLog($data) {
        return $this->add($data);
    }
    public function getLogs($where, $limit) {
        return $this->where($where)->limit($limit)->select();
    }
    public function getOneLog($where) {
        return $this->where($where)->find();
    }
}

